public abstract class Animal2 {
    private String color;
    private int age;
    public Animal2(){
    }
    public Animal2(String color, int age) {
        this.color = color;
        this.age = age;
    }
    public abstract void eat();
    public abstract void sleep();

    @Override
    public String toString(){
        return "color:" + color + ", age:" + age;
    }
}
